package demo2;

/**
 * @Author liangzai
 * @Description:
 */
public class PointDemo {
    public double distance( Point p1 , Point p2){
        int dx = Math.abs(p1.x - p2.x);
        int dy = Math.abs(p1.y - p2.y);
        return Math.sqrt(dx * dx + dy * dy);
    }
}
